dataSource {
	pooled = true
	driverClassName = "com.mysql.jdbc.Driver"
	dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
	username = "root"
	password = "admin1234"
	url = "jdbc:mysql://localhost:3306/ikastoladev" //dev for development
	logSql = true
	properties {
		maxActive=100
		maxIdle=25
		minIdle=5
		minEvictableIdleTimeMillis=60000 //1800000
		timeBetweenEvictionRunsMillis=60000 //1800000
		numTestsPerEvictionRun=3
		testOnBorrow=true
		testWhileIdle=true
		testOnReturn=true
		validationQuery="SELECT 1"
	 }
}

hibernate {
    cache.use_second_level_cache = true
    cache.use_query_cache = false
    cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}

// environment specific settings
environments {
    development {
        dataSource { }
    }
    test {
		dataSource { }
    }
    production {
		dataSource { }
	}
}
